import re

s = 'aa\nbb\ncc'
p = '.+'
res = re.search(p, s)
print(res.group())

